package se.jocke.nbrs.service.event;

import se.jocke.nbrs.model.RestService;

/**
 *
 * @author jocke
 */
public class SendRequestEvent {

    private RestService restService;

    public SendRequestEvent(RestService restService) {
        this.restService = restService;
    }

    public RestService getRestService() {
        return restService;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + (this.restService != null ? this.restService.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SendRequestEvent other = (SendRequestEvent) obj;
        if (this.restService != other.restService && (this.restService == null || !this.restService.equals(other.restService))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "SendRequestEvent{" + "restService=" + restService + '}';
    }
    
}
